import { Component, Input, Output, EventEmitter, OnInit, OnChanges } from '@angular/core';
import { Router } from '@angular/router';
import { Config } from '../../../../service/config';
import { el } from "@angular/platform-browser/testing/src/browser_util";
@Component({
    selector: 'information-detail',
    templateUrl: 'information-detail.html',
    styleUrls: ['information-detail.scss']
})

export class InformationDetailPage implements OnInit, OnChanges {
    isSpinning: boolean = false;
    showHtml: string;
    @Input() inValue: any=[];
    @Output("outPut") outPut = new EventEmitter();

    constructor(
        private router: Router
    ) {
        console.log(1111);
    }
    ngOnInit() {
        console.log(this.inValue);
    }
    ngOnChanges() {
        this.showHtml = '';
        if (this.inValue) {
            this.showHtml = decodeURIComponent(atob(this.inValue.content));
            console.log(this.showHtml);
        }
    }


}
